// 编译: rustc --crate-type=lib src/lib.rs

pub fn public_function() {
    println!("called hf's `public_function`");
}

fn private_function() {
    println!("called hf's `private_function`");
}

pub fn indirect_access() {
    println!("called hf's indirect_access");
    private_function();
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn it_works() {
        indirect_access();
    }
}
